import { Component, Input } from '@angular/core';
import { NavParams, ModalController } from '@ionic/angular';

@Component({
    template: `
    <div (click)="dismiss()" class="modal-alarm-write">
        <div class='content'>
            <ion-list>
                <ion-item>{{ content.alarmReason || 'xxxx' }}</ion-item>
                <ion-item>{{ content.procContent || 'cccc' }}</ion-item>
            </ion-list>
        </div>
    </div>
    `,
    selector: 'modal-alarm-write',
    styleUrls: ['alarm-detail.scss']
})
export class ModalContentPage {

    @Input() content;
    constructor(public modalCtrl: ModalController, public params: NavParams) {
        this.content = this.params.get('content');
    }

    dismiss() {
        this.modalCtrl.dismiss();
    }
}
